package com.example.teamwork.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Table(name="sys_visitor")
public class Visitor implements Serializable {
    @Id
    private Long visitorId;
    private String visitorCtype;
    private String visitorCnumber;
    private String visitorName;
    private Integer visitorAge;
    private Integer visitorSex;
    private String visitorPhoto;
    private String visitorAddress;
    private String visitorNation;
    //访客车牌号
    private String visitorPlate;
    private String visitorPhone;
    private String visitorReason;
    private String visitorCompany;
    private String remarks;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date etime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ltime;
    //内部人员id
    private Long interId;
}